<script setup lang="ts">
import Message from '@/components/message/index'
const login = () => {
  // Message({ type: 'error', text: '失败了' })
  // Message({ type: 'success', text: 'ok' })
  Message.success('成功了', 5000)
}
</script>
<template>
  <div>
    <button @click="login">按钮</button>
  </div>
</template>
<style scoped>
</style>